//
//  XHTestCell.m
//  testApp
//
//  Created by ColdMountain on 2017/3/8.
//  Copyright © 2017年 ColdMountain. All rights reserved.
//

#import "XHTestCell.h"

@implementation XHTestCell

- (void)awakeFromNib {
    [super awakeFromNib];
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    [self.contentView layoutSubviews];
}

//- (CGFloat)setNoteLayout
//{
//    CGFloat width=0;
//    if ([UIScreen
//         mainScreen].bounds.size.height == 568.0)
//    {
//        width = 239;
//    }
//    else if ([UIScreen
//              mainScreen].bounds.size.height == 667.0)
//    {
//        width = 294;
//    }
//    else if ([UIScreen
//              mainScreen].bounds.size.height == 736.0)
//    {
//        width = 333;
//    }
////    CGSize size = [self.ui_noteLabel sizeThatFits:
////                   CGSizeMake(width,MAXFLOAT)];
//    CGSize size = [self.ui_noteLabel sizeThatFits:
//                   CGSizeMake(self.m_width,MAXFLOAT)];
//    CGRect frame = [self frame];
//    frame.size.height = size.height;
//    self.frame = frame;
////    NSLog(@"高度:%.f",frame.size.height);
//    NSLog(@"宽度:%.f",self.m_width);
//    return frame.size.height;
//}

- (void)noteFrameWithHeight:(CGFloat)height
{
    [_delegate testCellWithNoteHeight:height];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
